
import 'package:flutter/cupertino.dart';
import 'package:pull_to_refresh/pull_to_refresh.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBJsonToModel/YBMineModel/YBMineUserInfoModel.dart';
import 'package:yb_zsyiji_androidflutter_pro/YBNetWorkModule/YBBaseMineNetWork/YBBaseMineNetWork.dart';

class YBMineUserProvider with ChangeNotifier{

  YBMineUserInfoModel  mineUserInfoModel;
  RefreshController easyRefreshController = RefreshController();
  void getUserInfoData(){
    YBMineNetWork.mineUserInfoData({
      "sysCode":"xg_newyijiwang",
    },success:(data){
      print('--个人信息---$data--');
      easyRefreshController.refreshCompleted();
      mineUserInfoModel = YBMineUserInfoModel.fromJson(data);
      notifyListeners();
    },fail: (error){
      print('--$error-');
    });
  }

}